<!DOCTYPE html>
<html lang="en">

<head>
  <title>Diandian</title>
  <meta charset="utf-8" />
  <meta name="viewport"
    content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no" />
  <meta name="apple-mobile-web-app-capable" content="yes" />
  <meta name="apple-mobile-web-app-status-bar-style" content="black" />
  <meta name="referrer" content="unsafe-url">
  <meta name="theme-color" content="#000000" />
  <meta name="description" content="Diandian" />

  <!-- 生成地址： https://www.51tool.com/ico/?action=make -->
  <link rel="icon" href="/diandian/faviconpic.ico" />


  <script src="https://as.alipayobjects.com/g/component/fastclick/1.0.6/fastclick.js"></script>
  <script>
    if ('addEventListener' in document) {
      document.addEventListener('DOMContentLoaded', function () {
        FastClick.attach(document.body);
      }, false);
    }
    if (!window.Promise) {
      document.writeln('<script src="https://as.alipayobjects.com/g/component/es6-promise/3.2.2/es6-promise.min.js"' + '>' + '<' + '/' + 'script>');
    }

    function adapter() {
      let dip = document.documentElement.clientWidth
      // let rootFontSize = dip / 10
      // if (dip > 750) {
      //   rootFontSize = 750 / 10
      // }
      // document.documentElement.style.fontSize = rootFontSize + 'px'

      let defSize = 400;

      if (dip > defSize) {
        dip = defSize;
      }
      document.getElementsByTagName("html")[0].style.fontSize = 10 * (dip / defSize) + 'px'
    }
    adapter()

    window.onresize = adapter
  </script>
</head>

<body>
  <div id="root"></div>
</body>

</html>